<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>疫苗接种管理系统主页</title>
    <script src="js/jquery-3.6.0.js"></script>
    <script src="layui/layui.js"></script>
    <link rel="stylesheet" href="layui/css/layui.css">
</head>
<body>
<div class="layui-layout layui-layout-admin">
    <div class="layui-header layui-bg-green">
        <div class="layui-logo layui-hide-xs layui-bg-blue">疫苗接种管理系统</div>
        <!-- 头部区域（可配合layui 已有的水平导航） -->
        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item layui-hide layui-show-md-inline-block">
                <a href="javascript:;">
                    <img th:src="'images/'+${session.user.pic}" class="layui-nav-img">
                    <span th:text="${session.user.name}"></span>
                </a>
                <dl class="layui-nav-child">
                    <dd><a href="usermessage.html" target="mainBody">个人信息</a></dd>
                    <dd><a href="/loginOut">退出登录</a></dd>
                </dl>
            </li>
        </ul>
    </div>

        <div class="layui-side layui-bg-black">
            <div class="layui-side-scroll">
                <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
                <ul class="layui-nav layui-nav-tree" lay-filter="test">
                    <li th:if="${session.user.roleid!=1}" class="layui-nav-item layui-nav-itemed">
                        <a class="" href="javascript:;">疫苗管理</a>
                        <dl class="layui-nav-child">
                            <dd><a href="findAllVaccines" target="mainBody">疫苗录入</a></dd>
                        </dl>
                    </li>
                    <li class="layui-nav-item">
                        <a href="javascript:;">接种管理</a>
                        <dl class="layui-nav-child">
                            <dd th:if="${session.user.roleid!=1}"><a href="findAllISite" target="mainBody">接种点</a></dd>
                            <dd><a href="findAllISiteAndVacc" target="mainBody">预约接种</a></dd>
                            <dd><a href="findAllReservationHist" target="mainBody">预约记录</a></dd>
                            <dd><a href="findAllInoculationHistory" target="mainBody">接种记录</a></dd>
                        </dl>
                    </li>
                    <li class="layui-nav-item">
                        <a href="javascript:;">检测管理</a>
                        <dl class="layui-nav-child">
                            <dd th:if="${session.user.roleid!=1}"><a href="findAlldetectionPoint" target="mainBody">检测点</a></dd>
                            <dd><a href="nucleic_test.html" target="mainBody">核酸检测</a></dd>
                            <dd><a href="myNucleicResult" target="mainBody">我的检测记录</a></dd>
                            <dd th:if="${session.user.roleid!=1}"><a href="allNucleicResult" target="mainBody">全部检测结果</a></dd>
                            <dd th:if="${session.user.roleid!=1}"><a href="vueResultEntry.html" target="mainBody">检测结果录入</a></dd>
                        </dl>
                    </li>
                    <li class="layui-nav-item">
                        <a href="javascript:;">健康管理</a>
                        <dl class="layui-nav-child">
                            <dd><a href="recode.html" target="mainBody">健康码</a></dd>
                            <dd><a href="healthreport.html" target="mainBody">健康上报</a></dd>
                            <dd><a href="HealthDeclarationRecord" target="mainBody">健康上报记录</a></dd>
                        </dl>
                    </li>
<!--                    <li class="layui-nav-item">-->
<!--                        <a href="javascript:;">人群类型</a>-->
<!--                        <dl class="layui-nav-child">-->
<!--                            <dd><a href="TheTypePayment.html" target="mainBody">缴费类型</a></dd>-->
<!--                            <dd><a href="Paymentrecords.html" target="mainBody">查询证件缴费记录</a></dd>-->
<!--                        </dl>-->
<!--                    </li>-->
                </ul>
            </div>
        </div>

    <div class="layui-body">
        <!-- 内容主体区域 -->
        <div style="width: 100%;height: 100%">
            <iframe name="mainBody" style="width: 100%;height: 100%;border: none" src="main.html"></iframe>
        </div>
    </div>

    <div class="layui-footer">
        <div style="text-align: center;font-weight: bold">疫苗接种，人人有责</div>
    </div>
</div>
<script>
    //JS
    layui.use(['element', 'layer', 'util'], function(){
        var element = layui.element
            ,layer = layui.layer
            ,util = layui.util
            ,$ = layui.$;

        //头部事件
        util.event('lay-header-event', {
            //左侧菜单事件
            menuLeft: function(othis){
                layer.msg('展开左侧菜单的操作', {icon: 0});
            }
        });
    });
</script>
</body>
</html>